package com.animals;

/**
 * People类
 * 描述：相关表演者的信息
 * 2017/8/23.
 * @author Erik
 * @version 0.1
 * @since JDK1.8
 */
public class People {
    private String name;
    private int actAge;
    private String clothing;
    private String skill;
//setters
    public void setName(String name)            {   this.name=name;         }
    public void setActAge(int actAge)           {   this.actAge=actAge;     }
    public void setClothing(String clothing)    {   this.clothing=clothing; }
    public void setSkill(String skill)          {   this.skill=skill;       }
//getters
    public String getName()     {   return this.name;        }
    public int getActAge()      {   return this.actAge;     }
    public String getClothing() {   return this.clothing;   }
    public String getSkill()    {   return this.skill;       }

    public String info(){
        String info="表演者："+this.getName()+'\n'
                +"艺龄："+this.getActAge()+'\n'
                +"着装："+this.getClothing()+'\n'
                +"技能："+this.getSkill()+'\n';
        return info;
    }

    public People(){}

    /**
     * 多参构造
     * 描述：初始化所有信息
     * @param name          姓名
     * @param actAge        艺龄
     * @param clothing      衣着
     * @param skill         技能
     */
    public People(String name,int actAge,String clothing,String skill){
        this.setName(name);
        this.setActAge(actAge);
        this.setClothing(clothing);
        this.setSkill(skill);
    }
}
